package com.wz.dhs.model.common;

public enum BusinessCode implements IResultCode {

    USER_PASSWORD_ERROR("10000", "用户名或密码错误"),
    PHONE_INVALID("10001","手机号不符合规则"),
    IMAGECODE_INVALID("10002","图形验证码错误"),
    PHONECODE_INVALID("10003","请输入正确的验证码"),
    USERNAME_EXIST("10004","用户名已存在"),
    PHONE_EXIST("10005","手机号已存在"),
    PASSWORD_ERROR("10006","两次密码不一致"),
    USER_HAS_LOGIN("10007","用户已登录"),

    USER_NOT_EXIST("10008","该手机号未注册"),


    PHONE_NOT_EXIST("10031","手机号不存在"),
    USERNAME_NOT_EXIST("10032","用户名不存在"),
    LOGIN_PASSWORD_ERROR("10034","密码错误"),


    USER_DISABLED("10038","用户已被禁用"),

    USE_MINI_APP("10044","请使用小程序登录"),

    VALID_CODE_ERROR("10040", "手机验证码错误"),

    VIDEO_TIME_ERROR("10042", "你的视频播报剩余时长不足，请联系客服充值"),

    MODE_NUM_ERROR("10043", "你的剩余可捏脸数字人数量不足，请联系客服充值"),

    CHECK_TEXT_ERROR("10041", "敏感词检测调用失败"),

    ALIPAY_NOTIFY_ERROR("10042", "支付宝回调验证失败")



    ;
    final String code;
    final String msg;

    private BusinessCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
